package com.haiheng.voiceandbook.common

import android.annotation.SuppressLint
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

@SuppressLint("ParcelCreator")
@Parcelize
data class BookMainDto(var code: Int, var data: BookDataDto) : Parcelable

@SuppressLint("ParcelCreator")
@Parcelize
data class BookDataDto(var total: Int, var books: MutableList<BookDto>) : Parcelable

@SuppressLint("ParcelCreator")
@Parcelize
data class BookDto(var bookId: String, var author: String, var bookName: String, var coverImg: String, var publisher: String, var summary:String) : Parcelable{
    fun getBookId() : Long{
        return bookId.toLong()
    }
}